home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / build.bat < prev    next >
DOS Batch File  |  1996-07-12  |  4KB  |  169 lines

  1. @echo OFF
  2. rem $Id: build.bat,v 4.1 1996/03/15 18:01:49 mikes Exp $
  3. rem ------------------------------------------------------------------------
  4. rem 
  5. rem             T H E    P I N E    M A I L   S Y S T E M
  6. rem 
  7. rem   Mike Seibel
  8. rem   Networks and Distributed Computing
  9. rem   Computing and Communications
  10. rem   University of Washington
  11. rem   Administration Builiding, AG-44
  12. rem   Seattle, Washington, 98195, USA
  13. rem   Internet: lgl@CAC.Washington.EDU
  14. rem             mikes@CAC.Washington.EDU
  15. rem  
  16. rem   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  17. rem  
  18. rem  
  19. rem   Pine and Pico are registered trademarks of the University of Washington.
  20. rem   No commercial use of these trademarks may be made without prior written
  21. rem   permission of the University of Washington.
  22. rem  
  23. rem   Pine, Pico, and Pilot software and its included text are Copyright
  24. rem   1989-1996 by the University of Washington.
  25. rem  
  26. rem   The full text of our legal notices is contained in the file called
  27. rem   CPYRIGHT, included with this distribution.
  28. rem 
  29. rem 
  30. rem 
  31. rem ------------------------------------------------------------------------
  32.  
  33. if "%1"=="" goto blank
  34. if "%1"=="wnt" goto wnt
  35. if "%1"=="win" goto win
  36. if "%1"=="lwp" goto lwp
  37. if "%1"=="wattcp" goto wattcp
  38. if "%1"=="pctcp" goto pctcp
  39. if "%1"=="pcnfs" goto pcnfs
  40. if "%1"=="clean" goto clean
  41. echo Unknown build command: %1 %2 %3 %4
  42. goto usage
  43. :blank
  44. echo Must specify build command!
  45. :usage
  46. echo usage: BUILD cmd
  47. echo   where "cmd" is one of either:
  48. echo         LWP        -- generate Novell LWP compatible version
  49. echo         PCTCP      -- generate FTP Inc. PC/TCP compatible version
  50. echo         PCNFS      -- generate Sun PC-NFS compatible version
  51. echo         WATTCP     -- generate WATTCP (packet driver) compatible version
  52. echo         WIN        -- generate Winsock compatible version (Win16)
  53. echo         WNT        -- generate Winsock compatible version (Win32)
  54. echo         CLEAN      -- to remove obj, lib, and exe files from source
  55. goto fini
  56.  
  57. :wnt
  58. echo PC-Pine for Windows/Winsock (Win32) build sequence
  59. set cclntos=wsk
  60. set pineos=wnt
  61. set cclntmake=makefile.wnt
  62. set picomake=makefile.wnt
  63. set pinemake=makefile.wnt
  64. set extracflags=
  65. goto build
  66.  
  67. :win
  68. echo PC-Pine for Windows/Winsock (Win16) build sequence
  69. set cclntos=wsk
  70. set pineos=wsk
  71. set cclntmake=makefile.dos
  72. set picomake=makefile.win
  73. set pinemake=makefile.win
  74. set extracflags="-Zi -GA -Gt2 -Gy"
  75. goto build
  76.  
  77. :lwp
  78. echo PC-Pine for Novell LWP stack build sequence
  79. set cclntos=dnv
  80. set pineos=lwp
  81. set cclntmake=makefile.dos
  82. set picomake=makefile.msc
  83. set pinemake=makefile.msc
  84. set extracflags="-Zi -GA -Gt2 -Gy"
  85. goto build
  86.  
  87. :wattcp
  88. echo PC-Pine for WATTCP stack build sequence
  89. set cclntos=dwa
  90. set pineos=wattcp
  91. set cclntmake=makefile.dos
  92. set picomake=makefile.msc
  93. set pinemake=makefile.msc
  94. set extracflags="-Zi -GA -Gt2 -Gy"
  95. goto build
  96.  
  97. :pctcp
  98. echo PC-Pine for FTP Inc. PC/TCP stack build sequence
  99. set cclntos=dpc
  100. set pineos=pctcp
  101. set cclntmake=makefile.dos
  102. set picomake=makefile.msc
  103. set pinemake=makefile.msc
  104. set extracflags="-Zi -GA -Gt2 -Gy"
  105. goto build
  106.  
  107. :pcnfs
  108. echo PC-Pine for Sun PC-NFS stack build sequence
  109. set cclntos=dnf
  110. set pineos=pcnfs
  111. set cclntmake=makefile.dos
  112. set picomake=makefile.msc
  113. set pinemake=makefile.msc
  114. set extracflags="-Zi -GA -Gt2 -Gy"
  115. goto build
  116.  
  117. :clean
  118. echo Sure you want to delete object, library and executable files?!?!
  119. echo If NOT, type Ctrl-C to terminate build script NOW.  Type ENTER if you do.
  120. pause
  121. echo Cleaning pine, pico and c-client directories
  122. set cleandir=c-client
  123. :blast
  124. cd %cleandir%
  125. echo Cleaning %cleandir%...
  126. del *.obj
  127. del *.lib
  128. del *.bak
  129. del *.map
  130. del *.exe
  131. del osdep.h
  132. del osdep.c
  133. del os.h
  134. del os.c
  135. cd ..
  136. if "%cleandir%"=="c-client" goto cleanpico
  137. if "%cleandir%"=="pico" goto cleanpine
  138. echo Directories cleaned up.
  139. set cleandir=
  140. goto fini
  141. :cleanpico
  142. set cleandir=pico
  143. goto blast
  144. :cleanpine
  145. set cleandir=pine
  146. goto blast
  147.  
  148. :build
  149. echo Building c-client...
  150. cd c-client
  151. nmake -nologo -f %cclntmake% OS=%cclntos% EXTRACFLAGS=%extracflags%
  152. if errorlevel 1 goto bogus
  153. echo Building pico...
  154. cd ..\pico
  155. nmake -nologo -f %picomake% %pineos%=1
  156. if errorlevel 1 goto bogus
  157. echo Building pine...
  158. cd ..\pine
  159. nmake -nologo -f %pinemake% %pineos%=1
  160. if errorlevel 1 goto bogus
  161. cd ..
  162. echo Pine build complete.
  163. goto fini
  164.  
  165. :bogus
  166. echo Problems building pine!
  167.  
  168. :fini
  169.